<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>会员活动</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index">首页</a>
                </li>
                <li>
                    <a>活动策划</a>
                </li>
                <li class="active">
                    <strong>会员活动</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">
        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <input type="text" id="search_Name" name="search_Name" placeholder="会员名称" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <input type="text" id="search_Phone" name="search_Phone" placeholder="会员电话" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search" onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh" onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</button>
                            </div>
                        </div>
                        <div class="jqGrid_wrapper">
                            <table class="table table-striped table-bordered table-hover " id="tableList" >
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">充值信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <label class="col-lg-2 control-label">充值金额</label>
                                <div class="col-lg-4">
                                    <div class="form-group">
                                        <input type="text" id="add_Amount" name="add_Amount" placeholder="充值金额(必填)" autocomplete="off" class="form-control" maxlength="100">
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="addAmount();"><i class="fa fa-save"></i>&nbsp;充值</button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalDel" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">扣款信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <form class="form-horizontal" id="myform1">
                            <div class="panel-body form-horizontal">
                                <label class="col-lg-2 control-label">扣款金额</label>
                                <div class="col-lg-4">
                                    <div class="form-group">
                                        <input type="text" id="del_Amount" name="del_Amount" placeholder="扣款金额(必填)" autocomplete="off" class="form-control" maxlength="100">
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="delsave" name="save" class="btn btn-success" onclick="delAmount();"><i class="fa fa-save"></i>&nbsp;扣款</button>
                    <button type="button" id="delclose" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalEvent" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">活动信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <form class="form-horizontal" id="myform2">
                            <div class="panel-body form-horizontal">
                                <label class="col-lg-2 control-label">参与活动</label>
                                <div class="col-lg-7">
                                    <div class="form-group">
                                        <select id='text_Event' name='text_Event' class="form-control">
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="eventsave" name="save" class="btn btn-success" onclick="actEvent();"><i class="fa fa-save"></i>&nbsp;参与</button>
                    <button type="button" id="eventclose" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalCoupon" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">添加优惠券信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <form class="form-horizontal" id="myform3">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label">优惠券名</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Coupon" name="text_Coupon" placeholder="优惠券名(必填)" autocomplete="off" class="form-control" maxlength="100">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">优惠券抵扣金额</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Money" name="text_Money" placeholder="优惠券抵扣金额(必填)" autocomplete="off" class="form-control" maxlength="100">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">优惠券门槛金额</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_Amount" name="text_Amount" placeholder="优惠券门槛金额(必填)" autocomplete="off" class="form-control" maxlength="100">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">有效开始时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_couponStarTime" name="text_couponStarTime" placeholder="有效开始时间(必填)" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">有效结束时间</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_couponEndTime" name="text_couponEndTime" placeholder="有效结束时间(必填)" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="couponsave" name="save" class="btn btn-success" onclick="addCoupon();"><i class="fa fa-save"></i>&nbsp;添加</button>
                    <button type="button" id="couponclose" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
    <script th:src="@{/js/event/memberEvent.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    MemberEvent.init();
</script>
</html>